package com.etc.entity.warning;

import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;

/**
 * @Main  预警阈值表的列清单
 * @Author zsw
 * @Date 2019/12/3 15:59
 **/
@DynamicInsert
@DynamicUpdate
@Data
@Entity
@Table(name = "biz_threshold")
public class BizThreshold {

    @Id
    @GenericGenerator(name = "jpa-uuid", strategy = "uuid")
    @GeneratedValue(generator = "jpa-uuid")
    private String id;
    @Column(name = "create_by", columnDefinition = "varchar(64) COMMENT '创建者'")
    private String createBy;
    @Column(name = "create_date", columnDefinition = "datetime COMMENT '创建时间'")
    private Date createDate;
    @Column(name = "update_by", columnDefinition = "varchar(64) COMMENT '更新者'")
    private String updateBy;
    @Column(name = "update_date", columnDefinition = "datetime COMMENT '更新时间'")
    private Date updateDate;
    @Column(name = "remarks", columnDefinition = "varchar(255) COMMENT '备注信息'")
    private String remarks;
    @Column(name = "del_flag", columnDefinition = "char(1) COMMENT '删除标记'")
    private String delFlag;
    @Column(name = "level", columnDefinition = "int(10) COMMENT '等级'")
    private Integer level;
    @Column(name = "value", columnDefinition = "varchar(50) COMMENT '数值'")
    private String value;
    @Column(name = "type", columnDefinition = "varchar(50) COMMENT '类型'")
    private String type;
    @Column(name = "ratio", columnDefinition = "double COMMENT '升级系数'")
    private float ratio;
    @Column(name = "sensorPosition", columnDefinition = "varchar(50) COMMENT '设备位置'")
    private String sensorPosition;
    @Column(name = "scope_flag", columnDefinition = "varchar(50) COMMENT '范围标志'")
    private float scopeFlag;
}
